package ren.nearby.http.base;


import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;

import dagger.android.AndroidInjection;
import dagger.android.AndroidInjector;
import dagger.android.support.AndroidSupportInjection;

/**
 * Created by Administrator on 2018/5/14 0014.
 */

public abstract class BaseLazyLoadFragmentTitle<T extends IPresenter> extends Fragment {

    @Override
    public void onAttach(Context context) {
        AndroidInjection.inject(this);
        super.onAttach(context);
    }


    /**
     * 操作层数据
     */
    protected T mPresenter;


    /**
     * 泛型注入操作层
     *
     * @param mPresenter
     */
    public void setPresenter(T mPresenter) {
        this.mPresenter = mPresenter;
    }


}
